package com.zxy.example.provider;

/**
 * @author zxy
 * @since 2025/5/11
 **/

import com.zxy.example.common.service.UserService;
import com.zxy.zxyrpc.registry.LocalRegistry;
import com.zxy.zxyrpc.server.HttpServer;
import com.zxy.zxyrpc.server.VertxServer;
import com.zxy.zxyrpc.server.http.VertHttpServer;

/**
 * 服务提供者启动类
 */
public class EasyProviderExample {
    public static void main(String[] args) {
        // todo 服务提供
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动web服务
        VertxServer vertHttpServer = new VertHttpServer();
        vertHttpServer.doStart(8080);
    }
}
